<div class="flex-h full-height">
  <div id="main" class="flex-v flex-1">
    <nz-alert nzType="info" nzMessage="Windows控制台"></nz-alert>
    <div #scrollContent class="screen flex-1 overflow-auto">
      <div *ngFor="let d of dataList" [class]="d.type" [innerHTML]="d.content"></div>
    </div>
    <div>
      <nz-input-group nzSearch [nzAddOnAfter]="suffixIconButton">
        <input type="text" nz-input [(ngModel)]="cmd" (keydown.enter)="sendCmd()" placeholder="输入要执行的指令, 按Enter键发送"/>
      </nz-input-group>
      <ng-template #suffixIconButton>
        <button nz-button nzType="primary" nzSearch (click)="sendCmd()"><i nz-icon nzType="enter"></i></button>
      </ng-template>
    </div>
  </div>

  <div class="cmd-history">
    <div class="cmd">ping www.baidu.com</div>
    <div class="cmd">ping www.google.com</div>
    <div class="cmd">ping www.baidu.com</div>
    <div class="cmd">ping www.google.com</div>
  </div>

</div>
